{include file="layout/header" title="菜单管理" /}
<div class="view-body">
    {include file="layout/menu" /}
    <div class="view-product">
        <div class="company_identify">
            <div class="manage-head">
                <h6 class="fl padding-left manage-head-con">
                    菜单管理
                </h6>
                <button class="fr layui-btn layui-btn-small layui-btn-primary clearfix layui_iframe" h="520px" style="margin-top: -5px;" title="添加菜单" url="{:url('admin/Admin/menu',['pid'=>0])}" w="500px">
                    添加顶级菜单
                </button>
            </div>
            <div class="offcial-table tr-border table-margin clearfix">
                <div class="tr-th clearfix">
                    <div class="th w10">
                        ID
                    </div>
                    <div class="th w30">
                        菜单名称
                    </div>
                    <div class="th w20">
                        模块/控制器/方法
                    </div>
                    <div class="th w10">
                        状态
                    </div>
                    <div class="th w30">
                        操作
                    </div>
                </div>
                {volist name="menu" id="v"}
                <div class="tr clearfix border-bottom-none">
                    <div class="td w10">
                        {$v.id}
                    </div>
                    <div class="td w30" style="text-align: left;">
                        {$v.html}{$v.title}
                    </div>
                    <div class="td w20">
                        {$v.name}
                    </div>
                    <div class="td w10">
                        {$v.status}
                    </div>
                    <div class="td w30">
                        <a class="layui-btn layui-btn-mini layui-btn-normal layui_iframe" h="520px" href="javascript:;" title="添加子菜单" url="{:url('admin/Admin/menu',['pid'=>$v['id']])}" w="500px">
                            添加子菜单
                        </a>
                        <a class="layui-btn layui-btn-mini layui-btn-warm layui_iframe" h="520px" href="javascript:;" title="编辑菜单" url="{:url('admin/Admin/menu',['id'=>$v['id']])}" w="500px">
                            编辑
                        </a>
                        <a class="layui-btn layui-btn-mini layui-btn-danger layui_confirm" href="{:url('admin/Admin/delMenu',['id'=>$v['id']])}" msg="确定删除吗？">
                            删除
                        </a>
                    </div>
                </div>
                {/volist}
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
</script>
{include file="layout/footer" /}
